import {hrAjax as proFetch} from 'src/hrpub/common/utils/utils';

export default function checkBtnPermission(billPk, opFlag, nodeKey, callback) {
    proFetch({
        url: '/nccloud/hrcm/agreement/CheckDataPermissionAction.do',
        body: {
            billPks: [billPk],
            opFlag,
            nodeKey
        },
    }).then((res) => {
        if (res.success) {
            callback && callback()
        }
    })
}